<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (sizeof($page) > 0) {
	echo "<div class='pg-item-list'>";
	echo "<h2>" . $page['pg_title'] . "</h2>";
	if ($page['pg_video'] != "") echo "<div class='youtube'>".parse_youtube_url($page['pg_video'])."</div>";
	if (sizeof($ph) > 0) {
		$data['ph'] = $ph;
		$data['id'] = $page['pg_id'];
		$data['title'] = $page['pg_title'];
		$this->load->view('modules/pg/list', $data);
	} else {
		echo showmenotice('Нет ни одной фотографии');
	}
	echo "<br class='cc'/>";
	echo "</div>";
} else {
	redirect('/');
}
?>